﻿using QYWXUpdate.DataModel;

namespace _111.Service.Login.Model
{
    public class LoginRequest:CommonRequest
    {
        public string Account {  get; set; }
        public string Password {  get; set; }

        public override CommonResponse Check()
        {
            var result = new CommonResponse();
            if (string.IsNullOrEmpty(Account))
            {
                result.SetError("Missing Account");
            }
            if (string.IsNullOrEmpty(Password))
            {
                result.SetError("Missing Password");
            }
            return result;
        }
    }
}
